﻿
namespace XTeam.Core.Interface
{
    public interface IMessageEntity
    {
        int InfoCode { get; set; }
        string Message { get; set; }
        int Level { get; set; }
    }

    public interface IMessageResult
    {
        void WriteMessage(int infoCode, string msg, int level = (int)MessageLevel.Info);
        IMessageEntity GetLastMessage();

    }

    public enum MessageLevel
    {
        Ok = 1000,
        Info = 2000,
        Warn = 3000,
        Error = 4000,
    }


}
